<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript BigInt</title>
</head>
<body>
<h2>BigInt 十六进制、八进制和二进制</h2>

<p id="demo"></p>

<script>
  let hex = 0x20000000000003n;
  let oct = 0o400000000000000003n;
  let bin = 0b100000000000000000000000000000000000000000000000000011n;

  document.getElementById("demo").innerHTML = hex + "<br>" + oct + "<br>" + bin;
</script>
</body>
</html>

<!--
输出结果：
9007199254740995
9007199254740995
9007199254740995
-->